﻿using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;

namespace KelonProud.TableManagement.Domain
{
    [Table("KpTables")]
    public class KelonTable:Entity
    {
        [Column("Name")]
        public virtual string Name { get; set; }

        [Column("TableName")]
        public virtual string TableName { get; set; }

        [Column("Description")]
        public virtual string Description { get; set; }

        [Column("DataBaseTypeId")]
        public virtual int DataBaseTypeId { get; set; }

        [ForeignKey("DataBaseTypeId")]
        public virtual KelonDataBase DataBase { get; set; }

        [Column("IsAutoGenerateTable")]
        public virtual bool IsAutoGenerateTable { get; set; }
    }
}
